﻿@page
@model AdminUI.Pages.BaseData.TenantInfoModel
@{
    var F = Html.F();
}

@section body{
    <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" BodyPadding="10" IsViewPort="true" Layout="Table" TableConfigColumns="2">
        <Items>
            <f:Panel TableColspan="2" Margin="5" ShowBorder="false" ShowHeader="true" Title="基本信息" Width="800">
                <Items>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="2" TableRowspan="1" Width="800" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox Label="应用名称" LabelWidth="110" Text="@Model.Current.TenantName" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="Linkman" Label="联系人" LabelWidth="110" Text="@Model.Current.Linkman" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="Phone" Label="联系电话" LabelWidth="110" Text="@Model.Current.Phone" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="2" TableRowspan="1" Margin="5" ShowBorder="false" ShowHeader="false" Width="800">
                <Items>
                    <f:TextBox ID="Address" Label="联系地址" LabelWidth="110" Text="@Model.Current.Address" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="MADiscount" Required="false" Label="A级会员折扣" LabelWidth="110" Text="@Model.Current.MADiscount" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="MBDiscount" Required="false" Label="B级会员折扣" LabelWidth="110" Text="@Model.Current.MBDiscount" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="MCDiscount" Required="false" Label="C级会员折扣" LabelWidth="110" Text="@Model.Current.MCDiscount" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="MAName" Required="false" Label="A级会员别名" LabelWidth="110" Text="@Model.Current.MAName" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="MBName" Required="false" Label="B级会员别名" LabelWidth="110" Text="@Model.Current.MBName" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="MCName" Required="false" Label="C级会员别名" LabelWidth="110" Text="@Model.Current.MCName" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="CommissionRatio" Label="业绩提成比例" LabelWidth="110" Text="@Model.Current.CommissionRatio" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:DropDownList ID="CommissionFlag" Label="业绩提成标志" LabelWidth="110" SelectedValue="@Model.Current.CommissionFlag" Width="300" Readonly="true">
                        <f:ListItem Text="没有业绩提成" Value="0" />
                        <f:ListItem Text="团队业绩提成" Value="1" />
                        <f:ListItem Text="区域业绩提成" Value="2" />
                    </f:DropDownList>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="L1Ratio" Label="直推奖励比例" LabelWidth="110" Text="@Model.Current.L1Ratio" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="1" TableRowspan="1" Width="400" Margin="5" ShowBorder="false" ShowHeader="false">
                <Items>
                    <f:TextBox ID="L2Ratio" Label="间推奖励比例" LabelWidth="110" Text="@Model.Current.L2Ratio" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
            <f:Panel TableColspan="2" TableRowspan="1" Margin="5" ShowBorder="false" ShowHeader="false" Width="800">
                <Items>
                    <f:TextBox ID="ExpressCompanyList" Label="合作快递公司" LabelWidth="110" Text="@Model.Current.ExpressCompanyList" Readonly="true"></f:TextBox>
                </Items>
            </f:Panel>
           @*  <f:Panel TableColspan="2" Title="简单介绍" Margin="5" ShowBorder="false" ShowHeader="true">
                <Content>
                    <Items>
                        <f:Label Text="@Model.Current.Memo" EncodeText="false" Width="760"></f:Label>
                    </Items>
                </Content>
            </f:Panel> *@

        </Items>
        <Toolbars>
            <f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Left">
                <Items>
                    <f:Button ID="btnClose" Text="刷新" IconFont="_Refresh" OnClientClick="location.reload();"></f:Button>
                    <f:Button ID="btnSubmit" Text="修改资料" IconFont="_Edit" OnClientClick="onEditClick();"></f:Button>
                </Items>
            </f:Toolbar>
        </Toolbars>
    </f:Panel>

    <f:Window ID="Window1" IsModal="true" Hidden="true" Target="Top" EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="800" Height="640">
        <Listeners>
            <f:Listener Event="close" Handler="onWindowClose('refresh');"></f:Listener>
        </Listeners>
    </f:Window>

}

@section script {
    <script>
        function onEditClick(event) {
            var path = "/BaseData/TenantEdit2?id=@Model.OnlineTID";
            F.ui.Window1.show(path, '修改资料');
        }

        function onSelectArea(event) {
            var path = "/Dialog/SelectArea?t=3";
            F.ui.Window1.show(path, '选择上级菜单（双击选择）', 400, 500);
        }

        function updateTreeSelectValue(treeNode) {
            F.ui.CountyName.setText(treeNode.id + '-' + treeNode.text);
            F.ui.CountyID.setValue(treeNode.id);

            //F.doPostBack('@Url.Handler("County_Change")', {
            //    'countyID': F.ui.CountyID.getValue()
            //});
        }
    </script>
}
